package com.anjubao.parking.municipal.parkinglot.mapper;

import com.anjubao.parking.municipal.parkinglot.dto.ParkingStatTradesResDto;
import com.anjubao.parking.municipal.parkinglot.dto.ParkingTrentTradesResDto;
import com.anjubao.parking.municipal.parkinglot.model.ParkingStatTrade;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author anjubao
 */
@Mapper
@Repository
public interface ParkingStatTradesMapper extends BaseMapper<ParkingStatTrade> {
    /**
     * 获取当日各类型停车场费用总数
     * @param cityId
     * @param type
     * @return
     */
    List<ParkingStatTradesResDto> findStatTrades(Integer cityId, Integer type);


    /**
     * 根据城市id和市区Id统计分时停车场费用趋势
     * @param cityId
     * @param type
     * @return
     */
    List<ParkingTrentTradesResDto> getParkingTrendTeades(Integer cityId, Integer type, Integer limit);
}
